package com.naiterui.ehp.bs.wechat.protocol.result;

import java.io.Serializable;

import org.apache.commons.lang3.builder.ToStringBuilder;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonProperty;

/**
 * 获取accesstoken返回结果
 * @author zhoupeipei
 * @date 2019/1/16 下午12:44
 * @since 1.0.0
 */
@JsonIgnoreProperties(ignoreUnknown = true)
public class AccessToken extends BaseResult implements Serializable {
    private static final long serialVersionUID = 2034804435263759391L;
    @JsonProperty("access_token")
    private String accessToken;
    @JsonProperty("expires_in")
    private Long expires;

    public String getAccessToken() {
        return accessToken;
    }

    public void setAccessToken(String accessToken) {
        this.accessToken = accessToken;
    }

    public Long getExpires() {
        return expires;
    }

    public void setExpires(Long expires) {
        this.expires = expires;
    }

    @Override
    public String toString() {
        return ToStringBuilder.reflectionToString(this);
    }
}
